% =========================================================================
% function shell
% Use this as a template to start any new code 
% With the use of 
% 1. LOAD_LMJ       which loads all priors and data 
% 2. LOAD_SETTINGS  which loads all settings to run the model 
% 3. PATH handler 
% 4. Initial code to the model handle to check solution is OK 
% =========================================================================
clear all; close all; clc; 
onscreen=1; 
flag_makelocalcopy =1; % Copy the settings and loading file to the outpath 
% =========================================================================
% root ='ptjgap';
% spec ='ama'; 
% subf ='chimod nfbs gdp 84'; 

root ='mebnd';
spec ='lindtr'; 
subf ='1trend pr2 simann'; 


% if left empty default name is settings.m 
set_fname=[]; 
% if left empty name of outpath will just be the date 
add2outpath=[];

% =========================================================================
% =========================================================================
% END USER INPUT 
% =========================================================================
% =========================================================================
lmj_shell;     
estima_initial;
estima_loop_main; 
